<template>
    <div>后台主页
        <el-button @click="logout">退出系统</el-button>
    </div>
</template>

<script>
export default {
  methods: {
    logout () {
      // 删除token
      window.sessionStorage.clear()
      this.$router.push('/login')
    }
  }
}
</script>

<style lang="less" scoped></style>
